# -*- mode:makefile -*-;   For Emacs users!

# The WWW-browsable directory where the installation takes place 
#INSTALLATION_FILE_ROOT=/home/jgomez/public_html

INSTALLATION_FILE_ROOT=/home/amos/public_html

# The URL of the previous directory.  DO NOT APPEND SLASH. 

#INSTALLATION_URL_ROOT=http://clip.dia.fi.upm.es/~jcorreas
INSTALLATION_URL_ROOT=http://clip.dia.fi.upm.es/~amos


# This is the prefix of the directories where Amos stores temporary
# data to keep track of searches, etc.  You can change it to whatever
# directory you want, provided it is writable by the http daemon.  It
# is used by some definitions below, but you can change these
# definition at will.

#DATA_ROOT=/home/jgomez/var
#DATA_ROOT=/home/jcorreas/var
DATA_ROOT=/home/amos/var

# This is the name of the directory where the installation will be
# made.  I.e., WWW files will be under
# $(INSTALLATION_FILE_ROOT)/$(SUBROOT_PATH), reachable from 
# $(INSTALLATION_URL_ROOT)/$(SUBROOT_PATH), and the data will be stored under 
# $(DATA_ROOT)/$(SUBROOT_PATH)

# You should not need to change this in a deplyment version, and in
# fact its actual name is not critical.  You may want to change it to
# make a new installation which does not conflict with a previous
# installation in the same machine.

SUBROOT_PATH=AMOS

# You probably do not need to change anything below this point.  Have
# a look, though.

# This is useful in case the target machine does not allow CGIs
# everywhere.  Normally it points to the same values as the previous
# ROOTs, but it can point to a different and a different directory
# tree.  CGIs will be installed in a directory called 'cgi-bin'
# starting from there.  This can be even used to store CGIs in a
# different machine (you have to fiddle around with copying
# installations by hand).

# INSTALLATION_FILE_CGI_ROOT=/home/boris/public_html
# INSTALLATION_URL_CGI_ROOT=http://clip.dia.fi.upm.es/~boris

INSTALLATION_FILE_CGI_ROOT=$(INSTALLATION_FILE_ROOT)
INSTALLATION_URL_CGI_ROOT=$(INSTALLATION_URL_ROOT)

# What group you want the Web files to be created under.
WWW_GROUP=apache

# These are the permissions the browsable files will be created with.
# The combination WWW_GROUP + WEB_PERMISSIONS should allow the http daemon
# to read the data.  A safe combination is usually read for everyone
# and write only for the user who performed the installation, i.e., 644.
WEB_FILE_PERMISSIONS=644
#WEB_FILE_PERMISSIONS=666

# Same as before, but for executable files (CGIs).  The httpd daemon
# should have read and execution permisions.  A safe
# combination is to allow execution to every one, and write
# permissions only to the owner of the file: 755
WEB_CGI_PERMISSIONS=755

# Permissions for a web-browsable directory usually include read and
# execute permissions for everyone.
#WEB_DIR_PERMISSIONS=755 
WEB_DIR_PERMISSIONS=755

# The files used to store intermediate files to keep track of, e.g.,
# transaction, log files, etc. are, in principle, read and written
# using the same user as the http damon.  The directories initially
# created to hold them must be writable by the http server.  An
# (unsafe) combination which should always work is using any group for
# these directories and 777 for the permissions: everybody can write
# and read in the directories.  A better option is to use the group
# the daemon runs under and allow write permissions to that group, but
# not to others (e.g., 775).
INTERMEDIATE_FILE_GROUP=apache
INTERMEDIATE_FILE_PERMISSIONS=777

# The external database needs these pieces of information.

# External database type. It may be either 'persdb' or 'mysql'
DATABASE_TYPE=persdb

# Permissions and ownership for database files and directories
# (ONLY applicable when DATABASE_TYPE=persdb)
DATABASE_DIR_PERMISSIONS=775
DATABASE_DIR_GROUP=apache
DATABASE_FILE_PERMISSIONS=664
DATABASE_FILE_GROUP=apache

# Following variables refer to MySql database only:

# The name of the database.  Any name will do it.
DATABASE_NAME=amos_database

# A database user to authenticate the program against the database server.
# It does not have to be an actual machine user.  Any name will do.
DATABASE_USER=amos_user

# The password.  Again, any name will do, but if you leave it after installing
# the database security could be compromised (anyone who can read this file
# could log in and change Amos tables arbitrarily).
DATABASE_PASSWORD=amos_five

# The user/password of the administration and reviewing interface of
# the web site. The same policy as above is applied.

WWW_ADMIN_USER = amos_admin
WWW_ADMIN_PASSWORD = amos_temple

# The email address of the Amos installation. It will receive messages
# regarding requests for package validation. 
# NOTE: SUBSTITUTE THE FAKE EMAIL ADDRESS FOR AN APPROPRIATE ONE!!!

REVIEWER_EMAIL = amos-validation@clip.dia.fi.upm.es

# Host and port where the database server is running. If the database server
# and the Amos system run in the same machine, use localhost and 0.
DATABASE_HOST=localhost
DATABASE_PORT=0

# Host where the Amos system is running. Do not change it if the database
# server and the Amos system run in the same machine.
DATABASE_CLIENT_HOST=$(DATABASE_HOST)


#---------------------------------------------------------------------------
# The values below this line have similar meaning as the ones above
# it, but they apply only to test versions (this is done so in order
# not to have conflicts between versions which are installed and
# versions which are in development).
#---------------------------------------------------------------------------

# The WWW-browsable directory where the installation takes place 
INSTALLATION_FILE_ROOT_TEST=/home/amos/public_html

# The URL of the previous directory.  DO NOT APPEND SLASH. 
INSTALLATION_URL_ROOT_TEST=http://clip.dia.fi.upm.es/~amos

# This is the prefix of the directories where Amos stores temporary
# data to keep track of searches, etc.  You can change it to whatever
# directory you want, provided it is writable by the http daemon.  It
# is used by some definitions below, but you can change these
# definition at will.
DATA_DIR_TEST=/home/amos/var

# The engine sometimes needs to store temporary transaction data.  This is
# cleaned from time to time (e.g., when the daemon restarts).  
# It should not grow without control, and it _must not_ be erased by hand.
PERSISTENT_DATA_DIR_TEST=$(DATA_ROOT)/Test_Amos/

# This is the directory where log messages are stored.  This can be
# safely deleted at any time, and it is only useful to catch errors.
LOG_DIR_TEST=$(DATA_ROOT)/Test_Amos/

# In a future transactions can be stored for further processing and to
# study what people looks for.  At the moment it is not being used.
SAVE_DATA_DIR_TEST=$(DATA_ROOT)/Test_Amos/

# Group the HTTP daemon runs under
GROUP_TEST=apache



